#ifndef SESSIONDETAILWIDGET_H
#define SESSIONDETAILWIDGET_H

#include <QDialog>
#include <QLabel>
#include <QMessageBox>
#include <QPushButton>
#include <QVBoxLayout>
#include <QWidget>

#include "model/data.h"
#include "model/datacenter.h"
#include "choosefrienddialog.h"

///
/// \brief 更多按钮中的 用户信息 组合控件
///
class AvatarItem: public QWidget
{
public:
    AvatarItem(const QIcon& avatar, const QString& name);

    QPushButton* getAvatarBtn();

private:
    QPushButton* m_avatarBtn = nullptr;
    QLabel* m_nameLabel = nullptr;
};

///////////////////////////////////////
/// \brief 单聊窗口
///////////////////////////////////////
class SessionDetailWidget : public QDialog
{
    Q_OBJECT
public:
    SessionDetailWidget(const model::UserInfo& userinfo, QWidget* parent = nullptr);

};

#endif // SESSIONDETAILWIDGET_H
